package com.dingreading.cloud.mall.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类。
 *
 * @author Administrator
 * @since 2023-11-22
 */
@Data
@Table(value = "delivery_address")
public class DeliveryAddress implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    /**
     * 详细地址
     */
    private String address;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private Date editTime;

    /**
     * 姓名
     */
    private String name;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 省份code
     */
    private String provinceCode;

    /**
     * 省份名称
     */
    private String province;

    /**
     * 城市code
     */
    private String cityCode;

    /**
     * 城市名称
     */
    private String city;

    /**
     * 区域code
     */
    private String districtCode;

    /**
     * 区域名称
     */
    private String district;

    /**
     * 省市区
     */
    private String provinces;


    private String staffUid;

    /**
     * 默认地址状态 1.启用 0.禁用
     */
    private Integer status;

    private String storeUid;

}
